<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ page import="JSPBasicGrammar.javaBeanScience03.showTime.GetTime" %>
<!DOCTYPE html>
<html>
<head>
<!-- 设置定时刷新 -->
<meta http-equiv="Refresh" content="1">
<meta charset="UTF-8">
<title>显示当前时间</title>
</head>
<body>

<div>

<jsp:useBean id="getTime" class="JSPBasicGrammar.javaBeanScience03.showTime.GetTime" scope="application"></jsp:useBean>

<jsp:getProperty property="currTime" name="getTime"/>

</div>

<%
GetTime time=new GetTime();
out.println(time.getCurrTime());
%>




</body>
</html>